﻿* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.inactive {
    display: none !important;
    zoom: 1;
    filter: alpha(opacity=0);
    opacity: 0;
}

.active {
    display: block;
    zoom: 1;
    filter: alpha(opacity=100);
    opacity: 1;
}

.disabled {
    opacity: 0.5;
    filter: alpha(opacity=50);
    cursor: default;
}

.ellipsis {
    display: block;
    float: left;
    overflow: hidden;
    width: 100%;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clear:after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    content: " ";
}
/**/

.view {
    padding: .5em;
    height: 100%;
    position: relative;
    background: white;
}

/*header*/
.panel-handler,
.fav-handler {
    border: 0 !important;
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    background-color: none !important;
    background: none !important;
    text-shadow: none !important;
    font-family: FontAwesome !important;
    font-size: 1.2em !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 50% !important;
    line-height: 1.2 !important;
}

.app-title {
    padding: .3em !important;
}

.panel-handler {
    /*margin-top: -.5em !important;
    left: .5em !important;*/
    display: none !important;
}

.fav-handler {
    margin-top: -.6em !important;
    right: .5em !important;
}


/*end header*/

.ui-content {
    padding: 0 !important;
    overflow-y: hidden;
}

.ui-footer {
    height: 10px;
    display: none;
}

.ui-header {
    color: white !important;
    background-color: rgb(2, 136, 209) !important;
}

.mapparola-content {
    height: 30%;
    overflow-y: auto;
}
/*#region Panel */

.panel {
    width: 80%;
}

.ui-panel-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Panel positioning (for overlay and push) */
/* Panel left closed */
.ui-panel-position-left {
    left: -80%;
}

.ui-panel-page-content-position-left {
    left: 80%;
}

.ui-panel-dismiss-open.ui-panel-dismiss-position-left {
    left: 80%;
}

/* Panel left closed animated */
.ui-panel-animate.ui-panel-position-left.ui-panel-display-overlay,
.ui-panel-animate.ui-panel-position-left.ui-panel-display-push {
    left: 0;
    -webkit-transform: translate3d(-80%,0,0);
    -moz-transform: translate3d(-80%,0,0);
    -ms-transform: translate3d(-80%,0,0);
    -o-transform: translate3d(-80%,0,0);
    transform: translate3d(-80%,0,0);
}

/*#endregion */

/*#region LiveView */

.map-container {
    position: relative;
    height: 30%;
    -moz-box-shadow: 2px 2px 8px grey;
    -webkit-box-shadow: 2px 2px 8px grey;
    box-shadow: 2px 2px 8px grey;
}

    .map-container .map {
        height: 100%;
    }

.msg-container {
    height: 70%;
    margin-top: .5em;
    overflow-y: auto;
}

.messages.list {
    list-style-type: none;
    margin: 0 .4em;
    padding: 0;
}


    .messages.list li {
        text-align: center;
        margin: 1em auto;
        width: auto;
    }

/*.messages.list li:nth-child(even) {
        float: right;
        text-align: right;
    }

    .messages.list li:nth-child(odd) {
        float: left;
        text-align: left;
    }*/


.message-text {
    padding: .3em;
    display: inline-block;
    background: white;
    border: 1px solid transparent;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    box-shadow: 1px 1px 4px grey;
    position: relative;
    z-index: 1;
}


.multi .message-text::before,
.multi .message-text::after {
    content: '';
    height: 98%;
    position: absolute;
    width: 100%;
    z-index: -1;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.2) 0 0 8px;
    -moz-transform: rotate(1deg);
    -ms-transform: rotate(1deg);
    -o-transform: rotate(1deg);
    -webkit-transform: rotate(1deg);
    transform: rotate(1deg);
    display: none;
}

.multi .message-text::before {
    right: -6px;
    top: -6px;
}

.multi .message-text::after {
    right: -2px;
    top: -2px;
}

.discussion-icon {
    margin-left: .5em;
    font-size: 1.5em;
    cursor: pointer;
}

.map-resizer {
    bottom: -7px;
    left: 50%;
    position: absolute;
    width: 3em;
    background: lightblue;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    height: 1.2em;
    margin-left: -1.5em;
    cursor: row-resize;
}

    .map-resizer .map-handler {
        width: 100%;
        text-align: center;
        display: block;
    }

.new-message-container {
    bottom: 0;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 0 0 .5em;
    overflow: hidden;
    min-height: 4em;
}

    .new-message-container:not(.closed) {
        z-index: 99;
    }

.message-opener-container {
    background-color: rgba(255, 255, 255, 0.70);
    overflow-x: hidden;
    -moz-transition: transform .3s ease-in-out;
    -o-transition: transform .3s ease-in-out;
    -webkit-transition: transform .3s ease-in-out;
    transition: transform .3s ease-in-out;
}

.new-message-container.closed .message-opener-container {
    -moz-transform: translateX(89%);
    -ms-transform: translateX(89%);
    -o-transform: translateX(89%);
    -webkit-transform: translateX(89%);
    transform: translateX(89%);
}

.message-opener {
    position: absolute;
    background-color: white;
    right: 90%;
    width: 1.8em;
    border: 1px solid grey;
    border-right: none;
    -moz-border-radius: 4px 0 0 4px;
    -webkit-border-radius: 4px 0 0 4px;
    border-radius: 4px 0 0 4px;
    line-height: 1.3;
    display: block;
    padding-left: 0.45em;
    margin-right: -1px;
}


.message-editor {
    min-height: 2em;
    border: 1px solid grey;
    width: 90%;
    display: block;
    float: right;
    background-color: white;
    padding: .1em .5em;
    margin-bottom: 2em;
}

    .message-editor:focus {
        outline: none;
    }

.message-editor-options {
    position: absolute;
    right: .5em;
    bottom: .3em;
    border-top: none;
    width: 8em;
}

.message-pin {
    display: inline;
}

.message-sender {
    display: inline;
    margin: 0;
    padding: .2em .6em;
    -moz-box-shadow: 2px 2px 3px lightgrey;
    -webkit-box-shadow: 2px 2px 3px lightgrey;
    box-shadow: 2px 2px 3px lightgrey;
}


/*#endregion */

/*#region Fav view */

#fav-view .msg-container {
    height: 100%;
}

/*#endregion */
